package com.small.site.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.time.Duration;

/**
 * @author xiaochi
 * @date 2021/12/13 17:00
 * @desc 获取jwt配置信息
 */
@Setter
@Getter
@Configuration
@ConfigurationProperties(prefix = "jwt")
public class JwtConfig {
    /**
     * 发行者
     */
    private String issuer;
    /**
     * 密钥
     */
    private String secret;
    /**
     * 过期时间
     */
    private Duration expire;
}
